package com.study.controller;

import com.study.pojo.resp.ResultMessage;
import com.study.service.TeleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 通讯录管理控制器
 * @author Screncea
 */
@RestController
@RequestMapping("/phone")
public class TeleController {
    @Autowired
    TeleService teleService;
    @RequestMapping("/findAllDepartment")
    public ResultMessage findAllDepartment() {
        return teleService.findAllDepartment();
    }
}
